/*
 * @Description:: 请补充填写
 * @Version: 1.0
 * @Author: 小白
 * @Date: 2022-03-21 10:09:15
 * @LastEditors: 小白
 * @LastEditTime: 2025-11-10 11:18:23
 * @FilePath: \tmsadmin\src\api\base_url.ts
 */

let baseUrl // api_url
let imageUrl // 图片地址
let uploadUrl 
switch (process.env.NODE_ENV) {
  case 'development':
    baseUrl = 'https://api.kpsd56.com'

    uploadUrl = 'https://api.kpsd56.com'

    // baseUrl = 'http://192.168.0.20:8080'
  imageUrl = 'https://img.kpsd56.com'
    break
  case 'production':
    uploadUrl = 'https://api.kpsd56.com'
     baseUrl = 'https://api.kpsd56.com' //生成环境请求地址
    imageUrl = 'https://img.kpsd56.com'
    break
}

/*********
 * 请求路径地址列表
 */
// eslint-disable-next-line no-unused-vars
export const HTTP_URI: any = {
  BASE_URL: baseUrl,
  IMAGE_URL: imageUrl,
  UPLOAD_URL:uploadUrl,
  LOGIN: baseUrl + '/sys/user/admin/login',
  UPLOADFILE:uploadUrl + '/base/upload/file',
  UPLOADFILES:uploadUrl + '/base/upload/file/new',

  // 用户管理相关接口
  USERLIST:baseUrl + '/sys/user/getAdminList',
  USERADD:baseUrl + '/sys/user/admin/add',
  USEREDIT:baseUrl + '/sys/user/update',
  USERDEL:baseUrl + '/sys/user/delete',
  USERBATHEDIT:baseUrl + '/sys/user/bathUpdate',
  GETHOUSELIST:baseUrl + '/sys/house/houseList', //仓库初始化
  // 仓库管理相关接口
  HOUSELIST:baseUrl + '/sys/house/getHouseList',
  HOUSEADD:baseUrl + '/sys/house/add',
  HOUSEEDIT:baseUrl + '/sys/house/update',
  HOUSEDEL:baseUrl + '/sys/house/delete',

  // 运单管理相关接口
  ORDERLIST:baseUrl + '/sys/waybill/getList', //订单列表
  ORDERDETAIL:baseUrl + '/sys/waybill/detail', //订单详情
  ORDERADD:baseUrl + '/sys/waybill/add', //订单新增
  ORDEREDIT:baseUrl + '/sys/waybill/batchUpdate', //订单新增
  ORDERDEL:baseUrl + '/sys/waybill/delete', //订单新增
  ORDERCHAIFEN:baseUrl + '/sys/waybill/split',//拆分
  CARSETTING:baseUrl + '/sys/waybill/configureVehicle', //车辆分配
  IMPORTORDERLIST:baseUrl +'/sys/waybill/input', //导入Excel
  DETAILSORDERLIST:baseUrl +'/sys/waybill/getProductList',//详情

  CARLIST:baseUrl + '/sys/user/getVehicleList' ,//车辆初始化

  EXPORTTABLE:baseUrl + '/sys/waybill/waybillExport', //excel导出

  EDITPRODUCT:baseUrl + '/sys/waybill/batchUpdaterProduct', //修改产品信息

  NEWSLIST:baseUrl + '/sys/news/getNewsList',
  NEWSADD:baseUrl + '/sys/news/add',
  NEWSEDIT:baseUrl + '/sys/news/update',
  NEWDEL:baseUrl + '/sys/news/delete',

  // 联系我们
  CONTACTUS:baseUrl + '/sys/about/us/get', //列表
  CONTACTUSEDIT:baseUrl + '/sys/about/us/update', //编辑

  OFFICIALINFO:baseUrl + '/sys/house/info',


  // 导入员工信息
  IMPORTSTAFF:baseUrl + '/sys/user/contract/input',
  STAFFLIST:baseUrl + '/sys/user/contract/getList',
    STAFFADD:baseUrl + '/sys/user/contract/add',
  STAFFEDIT:baseUrl + '/sys/user/contract/update',
  STAFFDEL:baseUrl + '/sys/user/contract/delete',

  TEMPLATELIST:baseUrl + '/sys/house/template/getHouseTemplateList',
  TEMPLATEADD:baseUrl + '/sys/house/template/add',
  TEMPLATEEDIT:baseUrl + '/sys/house/template/update',
  TEMPLATEDEL:baseUrl + '/sys/house/template/delete',
  TEMPLATEINFOLIST:baseUrl + '/sys/house/template/getList',
  TEMPLATEINFO:baseUrl + '/sys/house/template/numberGenerator',
  // 删除合同

  DELCONTRACT:baseUrl + '/sys/house/template/deleteTransportation',

  // 预览
  
  PREVIEW:baseUrl + '/sys/house/template/signature/preview',

  //


  CONTRACT:baseUrl + '/sys/house/template/contractIssuance',
  USERCONTRACTLIST:baseUrl + '/sys/house/template/getUserContractList',
  EXPORTLIST:baseUrl + '/sys/house/template/merge-pdf'
}
export default HTTP_URI
